package com.lujieni.dbsharding.simple.po;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * @author
 * @Title: OrderPO
 * @Description:
 * @date 2022/7/27 10:58 上午
 */
@Table(name = "t_order") // t_order是虚拟表和bindingTables: t_order 一致即可
public class OrderPO {

    @Id
    @Column(name = "id")
    private Long id;

    private Long userId;

    private BigDecimal price;

    private Integer status;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
